package com.jrx.anytxn.accounting.job.consolidationbilling.step;

import com.jrx.anytxn.accounting.bean.DealBillBean;
import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;

import java.util.Map;

/**
 * @author xqy
 * @version 1.0
 * @date 2019/11/27
 */
public class ConsolidationBillingListener implements JobExecutionListener {

    private Map<String, DealBillBean> subjectDetailMap;

    public ConsolidationBillingListener(Map<String, DealBillBean> subjectDetailMap){
        this.subjectDetailMap = subjectDetailMap;
    }

    @Override
    public void beforeJob(JobExecution jobExecution) {
        subjectDetailMap.clear();
    }

    @Override
    public void afterJob(JobExecution jobExecution) {
        subjectDetailMap.clear();
    }
}